<?php

/**
 * Development configuration
 * Usage:
 * - Local website
 * - Local DB
 * - Show all details on each error
 * - Gii module enabled
 */
$dirname = dirname(__FILE__);

return array(
	'yiiPath'=>'/PortableApps/Yii 1.1.10/framework/yii.php',
	'yiicPath'=>'/PortableApps/Yii 1.1.10/framework/yiic.php',
	'yiitPath'=>'/PortableApps/Yii 1.1.10/framework/yiit.php',
	'yiiDebug'=>true,
	'yiiTraceLevel'=>3,
	'configWeb'=>array(
		'modules'=>array(
			'gii'=>array(
				'class'=>'system.gii.GiiModule',
				'password'=>'Miyabi',
			),
			'user'=>array(
				'returnLogoutUrl'=>array('/qa/question/index'),
				'returnUrl'=>array('/qa/question/index'),
				'sendActivationMail'=>true,
				'tableUsers'=>'users',
				'tableProfiles'=>'profiles',
				'tableProfileFields'=>'profiles_fields',
				'install'=>true,
			),
			'rights'=>array(
				'install'=>true,
			),
			'qa'=>array(
				'userClass'=>'User',
				'install'=>true,
				'admins'=>array(
					'andy.julot@gmail.com',
				)
			),
			'comment'=>array(
				'defaultModelConfig'=>array(
					'registeredOnly'=>true,
					'useCaptcha'=>false,
					'allowSubcommenting'=>true,
					'premoderate'=>false,
					'postCommentAction'=>'comment/comment/postComment',
					'isSuperuser'=>'false',
					'orderComments'=>'ASC',
				),
				'commentableModels'=>array(
					'Question',
				),
				'userClass'=>'User',
			),
		),
		'components'=>array(
			'db'=>array(
				'connectionString'=>"mysql:host=localhost;dbname=miyabi",
				'emulatePrepare'=>true,
				'username'=>'miyabi',
				'password'=>'KagurazakiMiyabi',
				'charset'=>'utf8',
				'tablePrefix'=>''
			),
			'mail'=>array(
				'class'=>'ext.mail.YiiMail',
				'transportType'=>'smtp',
				'transportOptions'=>array(
					'host'=>'smtp.gmail.com',
					'username'=>'ai.yori.aoshi.2012@gmail.com',
					'password'=>'AiYoriAoshi',
					'port'=>465,
					'encryption'=>'ssl',
				),
				'logging'=>false,
				'dryRun'=>true, // Set to false to actually send mail
			),
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, info',
					),
//					array(
//						'class'=>'CWebLogRoute',
//						'levels'=>'error, warning, trace, info',
//						'showInFireBug'=>true,
//					),
				),
			),
		),
		'params'=>array(
			'mode'=>'development',
			'company'=>'Julot',
			'adminEmail'=>'andy.julot@gmail.com',
			'admin'=>array(
				'name'=>'Julot',
				'email'=>'andy.julot@gmail.com',
			),
			'files'=>'/Website/Aoshi/Miyabi/files',
		),
	),
	'configConsole'=>array(
		'params'=>'inherit',
	),
);